package scatours;

import org.apache.tuscany.sca.node.Contribution;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;

public class JumpstartLauncher {
	public static void main(String[] args) throws Exception{
		Contribution gvtContribution= new Contribution("introducing-trips",	"../introducing-trips/target/classes");
		Node node=NodeFactory.newInstance().createNode("trips.composite",gvtContribution);
		node.start();
		Trips tripProvider=node.getService(Trips.class,"TripProvider/Trips");
		System.out.println("Trip booking code="+ tripProvider.checkAvailability("FS1APR4",1));
		node.stop();
	}
	
}
